package yf.mall.vo.up;


import lombok.Data;

import java.util.Date;

import com.alibaba.excel.annotation.*;

import java.io.Serializable;



import yf.mall.entity.TopRecordEntity;
import yf.mall.vo.TopRecordVo;

                                        
/**
 * 上级记录实体
 * 表名 top_record
 *
 * 
 *
 * @date Tue Jun 06 14:28:03 CST 2023
 */
@Data
public class TopRecordUp implements Serializable {
    @ExcelIgnore
    private static final long serialVersionUID = 1L;

                        //
            @ExcelProperty("")
            private Long id;
        
                        //用户ID
            @ExcelProperty("用户ID")
            private Long userId;
        
                        //用户名
            @ExcelProperty("用户名")
            private String userName;
        
                        //用户编号
            @ExcelProperty("用户编号")
            private String userCode;
        
                        //当前值
            @ExcelProperty("当前值")
            private String topInfo;
        
                        //之前值
            @ExcelProperty("之前值")
            private String oldInfo;
        
                        //当前TID
            @ExcelProperty("当前TID")
            private Long topId;
        
                        //之前TID
            @ExcelProperty("之前TID")
            private Long oldId;
        
                        //变动原因
            @ExcelProperty("变动原因")
            private String info;
        
                        //变动时间
            @ExcelProperty("变动时间")
            private Date time;
        
    
    public TopRecordUp() {

    }

    public TopRecordVo toVo() {

        TopRecordEntity entity = new TopRecordEntity();
            TopRecordVo vo = new TopRecordVo(entity);
                                    entity.setId(id);
            
                                    entity.setUserId(userId);
            
                                    entity.setUserName(userName);
            
                                    entity.setUserCode(userCode);
            
                                    entity.setTopInfo(topInfo);
            
                                    entity.setOldInfo(oldInfo);
            
                                    entity.setTopId(topId);
            
                                    entity.setOldId(oldId);
            
                                    entity.setInfo(info);
            
                                    entity.setTime(time);
            
        
        return  vo;
    }



}
